package com.weic.service;

import com.weic.mapper.UserMapper;
import com.weic.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public User findUser(String username,String password){
        return userMapper.findUser(username,password);
    }

    public List<User> findAllUser(){
        return userMapper.findAllUser();
    }
}
